#include <QApplication>
#include <QPushButton>
#include "headers/mainwindow.h"
#include <QScreen>
int main(int argc, char *argv[]) {
    qDebug() << "QT基础系统开始启动...";
    QApplication a(argc, argv);
    MainWindow window;
    window.setWindowTitle("QT基础系统");
    QIcon icon(":/resources/images/logo.png");
    window.setWindowIcon(icon);
    QScreen * screen = QGuiApplication::primaryScreen();//获取主屏
    QRect rect =  screen->geometry();
    window.resize(QSize(rect.size().width() * 0.6 ,rect.size().height()* 0.6 ));
    QApplication::setWindowIcon(icon);
    window.show();
    qDebug() << "QT基础系统启动完成...";
    return QApplication::exec();
}
